package com.trust.pams.model.es;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Map;


@Document(indexName = "es_pams", type = "pams_milestone", shards = 1, replicas = 0)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MilestoneEsSearch {

    @Id
    private String id;

    @Field
    private String projectId;

    @Field(type= FieldType.Object)
    private Map rows;

}
